//
//  LZPopSelectCollectViewCell.m
//  laziz_Merchant
//
//  Created by xbnzd on 17/3/6.
//  Copyright © 2017年 XBN. All rights reserved.
//

#import "LZPopSelectCollectViewCell.h"

@interface LZPopSelectCollectViewCell()
@property (weak, nonatomic) IBOutlet UILabel *cellLabel;
@property (weak, nonatomic) IBOutlet UIImageView *arrawImg;

@end

@implementation LZPopSelectCollectViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.layer.cornerRadius = 4;
    if ([[LZLanguageManager shareInstance] getLanguageType] == LanguageType_Ar){
        self.arrawImg.image = [UIImage imageNamed:@"lz_selectgroup_mark_ar"];
    } else {
        self.arrawImg.image = [UIImage imageNamed:@"lz_selectgroup_mark_en"];
    }
}

- (void)loadData:(NSString *)str
{
    self.cellLabel.text = str;
}

- (void)showStateForSelected:(BOOL)isSelected
{
    if (isSelected) {
        self.arrawImg.hidden = NO;
        self.layer.borderColor = UIColorFromRGB(0x36bb2a, 1).CGColor;
        self.layer.borderWidth = 0.5;
        self.backgroundColor = [UIColor whiteColor];
    }else{
        self.arrawImg.hidden = YES;
        self.layer.borderWidth = 0;
        self.backgroundColor = UIColorFromRGB(0xeeeeee, 1);
    }
}

@end
